<?php if (!defined('THINK_PATH')) exit(); /*a:5:{s:87:"E:\web-linux-20180129\linux\checkorder\public/../application/order\view\ord\detail.html";i:1538016381;s:85:"E:\web-linux-20180129\linux\checkorder\public/../application/order\view\pub\head.html";i:1533884395;s:86:"E:\web-linux-20180129\linux\checkorder\public/../application/order\view\pub\upass.html";i:1533884729;s:85:"E:\web-linux-20180129\linux\checkorder\public/../application/order\view\pub\left.html";i:1538985912;s:85:"E:\web-linux-20180129\linux\checkorder\public/../application/order\view\pub\foot.html";i:1539051955;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>订单评审详情</title>

    <!-- bootstrap -->
    <link href="__CSS__/bootstrap/bootstrap.css" rel="stylesheet" />

    <!-- libraries -->
    <link href="__CSS__/libs/font-awesome.css" type="text/css" rel="stylesheet" />

    <!-- global styles -->
    <link rel="stylesheet" type="text/css" href="__CSS__/compiled/layout.css">
    <link rel="stylesheet" type="text/css" href="__CSS__/compiled/elements.css">
    <link rel="stylesheet" href="__CSS__/new.css"/>

    <!-- this page specific styles -->

    <!-- google font libraries -->
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,300|Titillium+Web:200,300,400' rel='stylesheet' type='text/css'>

    <!--[if lt IE 9]>
    <script src="__JS__/html5shiv.js"></script>
    <script src="__JS__/respond.min.js"></script>
    <![endif]-->
    <!--[if lt IE 8]>
    <link href="__CSS__/libs/font-awesome-ie7.css" type="text/css" rel="stylesheet" />
    <![endif]-->
    <script>
        (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
            m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
        })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

        ga('create', 'UA-49262924-1', 'phoonio.com');
        ga('send', 'pageview');

    </script>
    <style>
        .main-box{
            min-height: 820px;
        }
        @media (max-width:1320px){
            .main-box{
                min-height: 700px;
            }
        }

    </style>
</head>
<body>
<!--head-->
<link rel="stylesheet" href="__CSS__/new.css"/>
<link rel="stylesheet" href="__CSS__/other.css"/>
<style>
    @media (max-width: 768px) {
        .img{
            width: 160px!important;
            height: 56px!important;
            /* margin-top: -18px;
             padding-right: 2px;*/
        }
    }
    .table thead > tr > th span {
        border-bottom: 0;
    }
    .forhid{
        display: none;
    }
    .main-box{
        min-height: 820px;
    }
    @media (max-width:1320px){
        .main-box{
            min-height: 700px;
        }
    }
</style>

<header class="navbar" id="header-navbar">
    <div class="container">
        <a href="<?php echo url('Index/index'); ?>" id="logo" class="navbar-brand col-md-3 col-sm-3 col-xs-12">
            <img src="__IMG__/logo.png" class="img" alt=""/>
        </a>

        <button class="navbar-toggle" data-target=".navbar-ex1-collapse" data-toggle="collapse" type="button">
            <span class="sr-only">Toggle navigation</span>
            <span class="fa fa-bars"></span>
        </button>

        <div class="nav-no-collapse pull-right" id="header-nav">
            <ul class="nav navbar-nav pull-right">

                <li class="dropdown profile-dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <span class="hidden-xs"><?php echo $surname; ?>,welcome</span> <b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        <!--<li><a href="user-profile.html"><i class="fa fa-user"></i></a></li>-->
                        <li><a href="#" class="class-upass"><i class="fa fa-cog"></i>修改密码</a></li>
                        <!--<li><a href="#"><i class="fa fa-envelope-o"></i>Messages</a></li>-->
                        <li><a href="<?php echo url('Login/out'); ?>"><i class="fa fa-power-off"></i>退出登录</a></li>
                    </ul>
                </li>
                <li class="hidden-xxs">
                    <a class="btn" title="退出登录" href="<?php echo url('Login/out'); ?>">
                        <i class="fa fa-power-off"></i>
                    </a>
                </li>

            </ul>
        </div>
    </div>

</header>
<!--修改密码-->

<link rel="stylesheet" href="__CSS__/upass.css"/>

<!--修改密码 弹框-->
<div class="upass">
    <form method="post" onsubmit=upass("<?php echo $username; ?>") enctype="multipart/form-data">
        <div id="upass">
            <div class="ltitle" style="text-align: center;">修改密码</div>
            <div class="new-del">
                <span class="u-span">用户名</span>
                <input type="text" name="username_upass" value="<?php echo $username; ?>" class="fa-input" readonly style="background-color: grey">
            </div>
            <div class="new-del">
                <span class="u-span">原密码</span>
                <input type="password" name="oldpass" class="fa-input">
            </div>
            <div class="new-del">
                <span class="u-span">新密码</span>
                <input type="password" name="newpass" class="fa-input">
            </div>
            <div class="new-del">
                <span class="u-span">新密码确认</span>
                <input type="password" name="confirm" class="fa-input">
            </div>
            <div class="alert-btn" style=" margin-top: 16px;">
                <button type="submit" class="alert-sure" style="margin-left: 30%; border-radius: 5px;">确定</button>
                <span class="alert-cancel" style=" border-radius: 5px;">取消</span>
            </div>
        </div>
    </form>
</div>
<script src="__JS__/jquery.js"></script>
<script>

    function upass() {
        var username = $("input[name='username_upass']").val()
        var password = $("input[name='oldpass']").val()
        var update = $("input[name='newpass']").val()
        var confirm = $("input[name='confirm']").val()
        //console.log(model_id)
        var data = {'username':username,'password':password,'update':update, 'confirm':confirm}
        $.ajax({
            //几个参数需要注意一下
            type: "POST",//方法类型
            dataType: "json",//预期服务器返回的数据类型
            url: "<?php echo url('Base/upass'); ?>",//url
            data: data,
            success: function (result) {
                var code = result.code;
                var msg = result.msg;
                changeText(msg, code)
                //成功返回登录界面
                if(code == 1){
                    window.location.href="<?php echo url('Login/index'); ?>"
                }
            },
            error:function (result) {
                alert('服务器错误')

            }
        });
    }
    $(function () {
        $(".alert-close").click(function () {
            $(".upass").css("display","none")
        })
        $(".alert-cancel").click(function () {
            $(".upass").css("display","none")
        })
        $(".class-upass").click(function () {
            $(".upass").css("display","block")
        })

    })

</script>


<div class="container" role="main">
    <div class="row">

        <!--left-->
        
<style>
    #sidebar-nav .nav li .submenu > li > a.active{
        background-color: #313131;
    }
</style>

<div class="col-md-2" id="nav-col">
    <section id="col-left">
        <div class="collapse navbar-collapse navbar-ex1-collapse" id="sidebar-nav">
            <ul class="nav nav-pills nav-stacked" id="menulist">
                <li>
                    <a href="<?php echo url('Index/index'); ?>" class="tmp">
                        <i class="fa fa-home"></i>
                        <span>首页</span>
                    </a>
                </li>
                <?php if(in_array('Admin/index',$ownways) or in_array('Dept/index',$ownways) or in_array('Role/index',$ownways)): ?>
                <li>
                    <a href="#" class="dropdown-toggle">
                        <i class="fa fa-cog"></i>
                        <span>系统管理</span>
                        <i class="fa fa-chevron-circle-down drop-icon"></i>
                    </a>
                    <ul class="submenu">
                        <!--超级管理员管理菜单-->
                        <?php if($status == '0'): ?>
                        <li>
                            <a href="<?php echo url('Way/index'); ?>" class="tmp">
                                操作菜单管理
                            </a>
                        </li>
                        <?php endif; if(in_array('Role/index',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Role/index'); ?>" class="tmp">
                                角色管理
                            </a>
                        </li>
                        <?php endif; if(in_array('Dept/index',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Dept/index'); ?>" class="tmp">
                                部门管理
                            </a>
                        </li>
                        <?php endif; if(in_array('Admin/index',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Admin/index'); ?>" class="tmp">
                                用户管理
                            </a>
                        </li>
                        <?php endif; ?>
                    </ul>
                </li>
                <?php endif; if((in_array('Fitting/index',$ownways)) or (in_array('Client/index',$ownways))
                or (in_array('Program/index',$ownways) or (in_array('MeterType/index',$ownways))
                or (in_array('ModelType/index',$ownways)) or (in_array('Principle/index',$ownways)))): ?>
                <li>
                    <a href="#" class="dropdown-toggle">
                        <i class="fa fa-cogs"></i>
                        <span>可配置项管理</span>
                        <i class="fa fa-chevron-circle-down drop-icon"></i>
                    </a>
                    <ul class="submenu">
                        <?php if(in_array('State/index',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('State/index'); ?>" class="tmp">
                                国家管理
                            </a>
                        </li>
                        <?php endif; if(in_array('Client/index',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Client/index'); ?>" class="tmp">
                                客户管理
                            </a>
                        </li>
                        <?php endif; if(in_array('MeterType/index',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('MeterType/index'); ?>" class="tmp">
                                基表型号管理
                            </a>
                        </li>
                        <?php endif; if(in_array('ModelType/index',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('ModelType/index'); ?>" class="tmp">
                                电子模块类型管理
                            </a>
                        </li>
                        <?php endif; if(in_array('Manu/index',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Manu/index'); ?>" class="tmp">
                                制造商管理
                            </a>
                        </li>
                        <?php endif; if(in_array('Principle/index',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Principle/index'); ?>" class="tmp">
                                生产负责人管理
                            </a>
                        </li>
                        <?php endif; if(in_array('Fitting/index',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Fitting/index'); ?>" class="tmp">
                                配件管理
                            </a>
                        </li>
                        <?php endif; if(in_array('Supply/index',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Supply/index'); ?>" class="tmp">
                                客供料管理
                            </a>
                        </li>
                        <?php endif; if(in_array('Program/index',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Program/index'); ?>" class="tmp">
                                方案管理
                            </a>
                        </li>
                        <?php endif; ?>
                    </ul>
                </li>
                <?php endif; if(in_array('Order/index',$ownways)): ?>
                <li>
                    <a href="#" class="dropdown-toggle">
                        <i class="fa fa-shopping-cart"></i>
                        <span>订单评审管理</span>
                        <i class="fa fa-chevron-circle-down drop-icon"></i>
                    </a>
                    <ul class="submenu">
                        <li>
                            <a href="<?php echo url('Order/index'); ?>" class="tmp">
                                订单评审
                            </a>
                        </li>

                    </ul>
                </li>
                <?php endif; if(in_array('Execorder/index',$ownways) || in_array('Fitting/exec',$ownways)
                || in_array('Execorder/gds',$ownways) || in_array('Supply/exec',$ownways)
                || in_array('Execorder/gdc',$ownways) || in_array('Execorder/gdm',$ownways)
                || in_array('Execorder/gdq',$ownways)): ?>
                <li>
                    <a href="#" class="dropdown-toggle">
                        <i class="fa fa-money"></i>
                        <span>订单执行管理</span>
                        <i class="fa fa-chevron-circle-down drop-icon"></i>
                    </a>
                    <ul class="submenu">
                        <?php if(in_array('Execorder/index',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Execorder/index'); ?>" class="tmp">
                                订单执行
                            </a>
                        </li>
                        <?php endif; if(in_array('Order/exec',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Order/exec'); ?>" class="tmp">
                                配件执行
                            </a>
                        </li>
                        <?php endif; if(in_array('ModelSupply/index',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('ModelSupply/index'); ?>" class="tmp">
                                客供料执行
                            </a>
                        </li>
                        <?php endif; if(in_array('Execorder/gds',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Execorder/gds'); ?>" class="tmp">
                                统计报表-国家
                            </a>
                        </li>
                        <?php endif; if(in_array('Execorder/gdc',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Execorder/gdc'); ?>" class="tmp">
                                统计报表-客户
                            </a>
                        </li>
                        <?php endif; if(in_array('Execorder/gdm',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Execorder/gdm'); ?>" class="tmp">
                                统计报表-基表型号
                            </a>
                        </li>
                        <?php endif; if(in_array('Execorder/gdq',$ownways)): ?>
                        <li>
                            <a href="<?php echo url('Execorder/gdq'); ?>" class="tmp">
                                统计报表-表计订单数量
                            </a>
                        </li>
                        <?php endif; ?>

                    </ul>
                </li>
                <?php endif; ?>

            </ul>
        </div>
    </section>
</div>

<script src="__JS__/jquery.js"></script>
<script src="__JS__/pagenav/jquery.singlePageNav.min.js"></script>
<script>
    //菜单动态选中 js
    //获取当前地址栏中的链接
    var urlstr = location.href;
    var urlstatus = false;
    var menu_obj = $("#menulist a");
    //遍历所有菜单
    menu_obj.each(function () {
        //判断当前菜单是否存在
        if((urlstr + '/').indexOf($(this).attr('href')) > -1 && $(this).attr('href')!='')
        {
            $(this).addClass('active');
            $(this).parent().parent().parent().addClass('active'); //针对有多级菜单选中的样式添加
            urlstatus = true;
        }
        else
        {
            $(this).parent().removeClass('active');
        }
    });
    //加载页面默认选中第一个
    /*if(!urlstatus)
    {
        menu_obj.parent().eq(0).addClass('active');
    }*/
    /*$(function () {
        $('.nav').singlePageNav({
                offset:10
        }
        );
    })*/
</script>


        <div class="col-md-10" id="content-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1>订单评审详情</h1>
                    <div class="row" id="user-profile">
                        <div class="col-lg-12 col-md-12 col-sm-12">
                            <div class="main-box clearfix">

                                <div class="row profile-user-info">
                                    <div class="col-sm-4 profile-social">
                                        <ul class="fa-ul">
                                            <li><span style="font-weight: bold;margin-right: 10px;">客户</span><span><?php echo $order['client']; ?></span></li>
                                            <li><span style="font-weight: bold;margin-right: 10px;">客户联系方式</span><span><?php echo $order['client_contacts']; ?></span></li>
                                            <li><span style="font-weight: bold;margin-right: 10px;">下单联系人</span><span><?php echo $order['order_placer']; ?></span></li>
                                            <li><span style="font-weight: bold;margin-right: 10px;">下单联系人电话</span><span><?php echo $order['placer_phone']; ?></span></li>
                                            <li><span style="font-weight: bold;margin-right: 10px;">添加时间</span><span><?php echo $order['create_time']; ?></span></li>
                                        </ul>
                                    </div>
                                    <div class="col-sm-4 profile-social">
                                        <ul class="fa-ul">
                                            <li><span style="font-weight: bold;margin-right: 10px;">内置止回阀</span><span><?php echo $order['valve']; ?></span></li>
                                            <li><span style="font-weight: bold;margin-right: 10px;">内置滤网</span><span><?php echo $order['sieve']; ?></span></li>
                                            <li><span style="font-weight: bold;margin-right: 10px;">铭牌信息</span><span><?php echo $order['nameplate']; ?></span></li>
                                            <li><span style="font-weight: bold;margin-right: 10px;">是否带唛头</span><span><?php echo $order['mark']; ?></span></li>
                                            <li><span style="font-weight: bold;margin-right: 10px;">备注</span><span><?php echo $order['other']; ?></span></li>
                                        </ul>
                                    </div>
                                    <div class="col-sm-4 profile-social">
                                       <!-- <ul class="fa-ul">
                                            <li><span style="font-weight: bold;margin-right: 10px;">基表型号</span><span><?php echo $order['meter_type']; ?></span></li>
                                            <li><span style="font-weight: bold;margin-right: 10px;">表数量</span><span><?php echo $order['order_qty']; ?></span></li>
                                            <li><span style="font-weight: bold;margin-right: 10px;">方案</span><span><?php echo $order['pro_name']; ?></span></li>
                                            <li style="display: none;"><span style="font-weight: bold;margin-right: 10px;">方案id</span><input type="hidden" value="<?php echo $order['pro_id']; ?>" id="pro_id"/></li>
                                        </ul>-->
                                    </div>
                                </div>

                                <div class="tabs-wrapper profile-tabs">
                                    <ul class="nav nav-tabs">
                                        <li class="active"><a href="#tab-chat" data-toggle="tab">基表信息</a></li>
                                        <li><a href="#tab-activity" data-toggle="tab">配件信息</a></li>
                                        <li><a href="#tab-friends" data-toggle="tab">技术软件信息</a></li>
                                    </ul>

                                    <div class="tab-content">
                                        <div class="tab-pane fade" id="tab-activity">
                                            <div class="table-responsive">
                                                <!--配件列表-->
                                                <table class="table">
                                                    <thead>
                                                        <tr>
                                                            <th>配件</th>
                                                            <th>配件数量</th>
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                        <?php if(is_array($fids) || $fids instanceof \think\Collection): $i = 0; $__LIST__ = $fids;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
                                                        <tr>
                                                            <td>
                                                                <?php echo $v['fitting']; ?>
                                                            </td>
                                                            <td>
                                                                <?php echo $v['fid_num']; ?>
                                                            </td>
                                                        </tr>
                                                        <?php endforeach; endif; else: echo "" ;endif; ?>
                                                    </tbody>
                                                </table>
                                            </div>
                                        </div>
                                        <div class="tab-pane fade" id="tab-friends">
                                            <ul class="widget-users row">
                                                <!--技术软件信息-->
                                                <li class="col-md-4" id="chain">
                                                    <div class="details">
                                                        <div class="name">
                                                            <a href="#">固定/动态信道</a>
                                                        </div>
                                                        <div class="type time online">
                                                            <i class="fa fa-check-circle"></i>
                                                        </div><span><?php echo $order['chain']; ?></span>
                                                    </div>
                                                </li>
                                                <li class="col-md-4" id="infrade">
                                                    <div class="details">
                                                        <div class="name">
                                                            <a href="#">红外开关</a>
                                                        </div>
                                                        <div class="type time online">
                                                            <i class="fa fa-check-circle"></i>
                                                        </div><span><?php echo $order['infrade']; ?></span>
                                                    </div>
                                                </li>
                                                <li class="col-md-4 forhid" id="meteraddr">
                                                    <div class="details">
                                                        <div class="name">
                                                            <a href="#">表号长度</a>
                                                        </div>
                                                        <div class="type time online">
                                                            <i class="fa fa-check-circle"></i>
                                                        </div><span><?php echo $order['meter_len']; ?></span>
                                                    </div>
                                                </li>


                                                <li class="col-md-4">
                                                    <div class="details">
                                                        <div class="name">
                                                            <a href="#">计量模式</a>
                                                        </div>
                                                        <?php if($order['measure_mode'] == '0'): ?>
                                                        <div class="type time online">
                                                            <i class="fa fa-check-circle"></i>
                                                        </div><span>按体积</span>
                                                        <?php else: ?>
                                                        <div class="type time online">
                                                            <i class="fa fa-check-circle"></i>
                                                        </div><span>按金额</span>
                                                        <?php endif; ?>
                                                    </div>
                                                </li>
                                                <li class="col-md-4">
                                                    <div class="details">
                                                        <div class="name">
                                                            <a href="#">报警量</a>
                                                        </div>
                                                        <div class="type time online">
                                                            <i class="fa fa-check-circle"></i>
                                                        </div><span><?php echo $order['alarm']; ?></span>
                                                    </div>
                                                </li>
                                                <li class="col-md-4">

                                                    <div class="details">
                                                        <div class="name">
                                                            <a href="#">透支量</a>
                                                        </div>
                                                        <div class="type time online">
                                                            <i class="fa fa-check-circle"></i>
                                                        </div><span><?php echo $order['overdraft']; ?></span>
                                                    </div>
                                                </li>
                                                <li class="col-md-4">
                                                    <div class="details">
                                                        <div class="name">
                                                            <a href="#">时区</a>
                                                        </div>
                                                        <div class="type time online">
                                                            <i class="fa fa-check-circle"></i>
                                                        </div><span><?php echo $order['timezone']; ?></span>
                                                    </div>
                                                </li>
                                                <?php if($order['soft_from'] != '第三方软件'): ?>
                                                <li class="col-md-4">
                                                    <div class="details">
                                                        <div class="name">
                                                            <a href="#">加密方式</a>
                                                        </div>
                                                        <div class="type time online">
                                                            <i class="fa fa-check-circle"></i>
                                                        </div><span><?php echo $order['crypt']; ?></span>
                                                    </div>
                                                </li>
                                                <?php endif; if($order['crypt'] == '硬加密'): ?>
                                                <li class="col-md-4">
                                                    <div class="details">
                                                        <div class="name">
                                                            <a href="#">SGC</a>
                                                        </div>
                                                        <div class="type time online">
                                                            <i class="fa fa-check-circle"></i>
                                                        </div><span><?php echo $order['sgc']; ?></span>
                                                    </div>
                                                </li>
                                                <li class="col-md-4">
                                                    <div class="details">
                                                        <div class="name">
                                                            <a href="#">表计出厂密钥</a>
                                                        </div>
                                                        <div class="type time online">
                                                            <i class="fa fa-check-circle"></i>
                                                        </div><span><?php echo $order['cry_utk']; ?></span>
                                                    </div>
                                                </li>
                                                <?php endif; ?>


                                                <li class="col-md-4">
                                                    <div class="details">
                                                        <div class="name">
                                                            <a href="#">软件来源</a>
                                                        </div>
                                                        <div class="type time online">
                                                            <i class="fa fa-check-circle"></i>
                                                        </div><span><?php echo $order['soft_from']; ?></span>
                                                    </div>
                                                </li>

                                            </ul>
                                        </div>

                                        <div class="tab-pane fade in active" id="tab-chat">
                                            <div class="table-responsive">
                                                <!--基表型号列表-->
                                                <table class="table">
                                                    <thead>
                                                        <tr>
                                                            <th>基表型号</th>
                                                            <th>基表口径</th>
                                                            <th>数量</th>
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                    <?php if(is_array($ordermeters) || $ordermeters instanceof \think\Collection): $i = 0; $__LIST__ = $ordermeters;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
                                                        <tr>
                                                            <td>
                                                                <?php echo $v['meter_type']; ?>
                                                            </td>
                                                            <td>
                                                                <?php echo $v['caliber']; ?>
                                                            </td>
                                                            <td>
                                                                <?php echo $v['m_num']; ?>
                                                            </td>
                                                        </tr>
                                                    <?php endforeach; endif; else: echo "" ;endif; ?>
                                                    </tbody>
                                                </table>
                                            </div>

                                        </div>
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>

                </div>
            </div>

            <!--</div>
        </div>-->
        </div>
    </div>
</div>
<!--foot-->

<footer id="footer-bar">
    <p id="footer-copyright">
        &copy; 2018 LAISON
        <!--<a href="http://www.adbee.sk/" target="_blank">Adbee digital</a>. Powered by SuperheroAdmin.-->
    </p>
</footer>


<!-- global scripts -->
<script src="__JS__/jquery.js"></script>
<script src="__JS__/bootstrap.js"></script>

<!-- this page specific scripts -->
<script src="__JS__/jquery.slimscroll.min.js"></script>

<!-- theme scripts -->
<script src="__JS__/scripts.js"></script>
<script>
    var pro_id = $('#pro_id').val();
    //post前设为同步
    $.ajaxSettings.async = false;
    $.post("<?php echo url('Program/one'); ?>",{pro_id:pro_id},function(data){
        //console.log(data)
        var connect_way = ''
        var pro_pay =''
        if(data) {
            //根据方案通讯方式判断后面的显示列
            connect_way = data[0].connect_way;
            pro_pay = data[0].pro_pay
            //console.log(connect_way+','+pro_pay)
            //0RFID_V5,1STS_RFID,2STS_IR,3STS_LORA,4STS_NBIot,5STS_GPRS
            if(connect_way == 1){
                $('#chain').addClass('forhid')
            }else if(connect_way == 0){
                $('#chain').addClass('forhid')
                $('#infrade').addClass('forhid')
            }
            if(pro_pay == 0){
                //如果方案是STS(红外和lora)预付费或者STS射频卡预付费，那么技术参数那一栏目，需要增加表号（11位还是13位）；
                if((connect_way == 1) || (connect_way == 2) || (connect_way == 3)){
                    $('#meteraddr').removeClass('forhid')
                }
            }

        }
    },'json');
</script>

</body>
</html>